/*
 * @Author: your name
 * @Date: 2021-11-15 14:38:27
 * @LastEditTime: 2021-11-15 15:03:23
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /a1902-apractical2/my-react-dome/src/stores/index.js
 */
import {createStore, applyMiddleware} from 'redux';
import reducer from './reducer';
import appLySagaMiddleware from 'redux-saga';
import watchFetchData from './effects'
const sagaMiddleware = appLySagaMiddleware();

const store = createStore(reducer, applyMiddleware(sagaMiddleware));

sagaMiddleware.run(watchFetchData);


export default store;